package cn.ymz;

import cn.hutool.cache.Cache;
import cn.hutool.cache.CacheUtil;
import cn.ymz.listener.ClipListener;

import java.util.Timer;

public class Main {
    private static final int ONE_SEC = 1000;

    private static final int ONE_HOUR = ONE_SEC * 60 * 60;

    private static final int ONE_DAY = 24 * ONE_HOUR;

    public static void main(String[] args) {
        Timer timer = new Timer();
        // 默认存1小时
        Cache<String, Object> cache = CacheUtil.newTimedCache(ONE_HOUR);
        timer.schedule(new ClipListener(cache), 0, ONE_SEC);
        App.launch(App.class, args);
    }
}
